import request from '@/utils/request'

export function fileAdd(data: any) {
  return request({
    url: '/admin/fileAdd',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data,
  })
}

export function fileDel(data: any) {
  return request({
    url: '/admin/fileDel',
    method: 'post',
    data,
  })
}

// 获取配置参数
export function getParams(params?: any) {
  return request({
    url: '/admin/getParams',
    method: 'get',
    params,
  })
}
